#include <stdio.h>
#include "slist.h"

void testAtFront(slist_t *list) {


    //test insertAtFront
    for(int i=1;i<10;i++) {
        insertAtFront(list, i);
    }
    printf("head=%d, tail=%d\n", list->head->data, list->tail->data);
    printList(list);
}

void testAtTail(slist_t *list) {

    //test insertAtFront
    for(int i=1;i<10;i++) {
        insertAtTail(list, i);
    }
    printList(list);
}


int main() {
    slist_t list;

    list.head = NULL;
    list.tail = NULL;

    //testAtTail(&list);
    testAtTail(&list);

}